<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="180dp"
    android:orientation="vertical">

    <androidx.cardview.widget.CardView
        android:id="@+id/preset_card"
        android:layout_width="90dp"
        android:layout_height="140dp"
        android:layout_gravity="center"
        android:layout_marginEnd="8dp"
        android:layout_marginStart="8dp"
        android:layout_marginTop="4dp">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:id="@+id/actionbar_imitation"
                android:layout_width="match_parent"
                android:layout_height="26dp"
                android:background="@color/actionBarColor"
                android:orientation="vertical"
                app:layout_constraintTop_toTopOf="parent" />

            <LinearLayout
                android:id="@+id/messenger_view"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:background="@color/messengerBackgroundColor"
                android:gravity="bottom"
                android:orientation="vertical"
                app:layout_constraintBottom_toTopOf="@+id/preset_title_layout"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/actionbar_imitation">

                <androidx.cardview.widget.CardView
                    android:id="@+id/incoming_bubble"
                    android:layout_width="40dp"
                    android:layout_height="20dp"
                    android:layout_margin="4dp"
                    app:cardBackgroundColor="@color/inMessageColor"
                    app:cardCornerRadius="8dp" />

                <androidx.cardview.widget.CardView
                    android:id="@+id/outcoming_bubble"
                    android:layout_width="40dp"
                    android:layout_height="20dp"
                    android:layout_gravity="end"
                    android:layout_margin="4dp"
                    app:cardBackgroundColor="@color/outMessageColor"
                    app:cardCornerRadius="8dp">

                </androidx.cardview.widget.CardView>
            </LinearLayout>

            <LinearLayout
                android:id="@+id/preset_title_layout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?android:attr/colorBackground"
                android:gravity="center"
                android:orientation="horizontal"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent">

                <TextView
                    android:id="@+id/preset_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginBottom="5dp"
                    android:layout_marginRight="2dp"
                    android:layout_marginStart="2dp"
                    android:layout_marginTop="5dp"
                    android:ellipsize="marquee"
                    android:fontFamily="sans-serif-condensed"
                    android:gravity="center"
                    android:marqueeRepeatLimit="marquee_forever"
                    android:singleLine="true"
                    android:text="Blue"
                    android:textSize="14sp"
                    tools:ignore="HardcodedText,TouchTargetSizeCheck" />
            </LinearLayout>

        </androidx.constraintlayout.widget.ConstraintLayout>

    </androidx.cardview.widget.CardView>

    <RadioButton
        android:id="@+id/radio_btn"
        android:layout_width="30dp"
        android:layout_height="36dp"
        android:layout_gravity="center"
        android:minHeight="0dp"
        android:minWidth="0dp"
        tools:ignore="TouchTargetSizeCheck" />

</LinearLayout>